home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / tex / meta27 / mfsrc.lzh / SITE.H < prev   
C/C++ Source or Header  |  1991-01-05  |  7KB  |  189 lines

  1. /* Master configuration file for WEB to C.  Almost all the definitions
  2.    are wrapped with #ifndef's, so that you can override them from the
  3.    command line, if you want to.  */
  4.  
  5. #ifndef __WEB2C_SITE_H
  6. #define __WEB2C_SITE_H
  7.  
  8. /* Define if you're running on 4.2 or 4.3 BSD-based system.  */
  9. #ifndef BSD
  10. #undef    BSD
  11. #endif
  12.  
  13. /* Define if you're running on System V-based system.  */
  14. #ifndef SYSV
  15. #define    SYSV
  16. #endif
  17.  
  18. /* Define if you're running on an HP-based system (also define SYSV).  */
  19. #ifndef HP
  20. #undef HP
  21. #endif
  22.  
  23. /* Define if you're running on an AIX-based system.  */
  24. #ifndef AIX
  25. #undef AIX
  26. #endif
  27.  
  28. /* Define if you're running on a POSIX-based system.  */
  29. #ifndef _POSIX_SOURCE
  30. #define _POSIX_SOURCE
  31. #endif
  32.  
  33. /* Define this if the system will be compiled with an ANSI C compiler,
  34.    and never with a non-ANSI compiler.  It changes web2c so that it
  35.    produces ANSI C as its output.  This is a perhaps good idea, but you
  36.    don't necessarily gain anything in the production programs by doing
  37.    it.  If you do define this, you must also have a declaration for
  38.    sprintf(3) in <stdio.h>.  */ 
  39. #ifndef ANSI
  40. #undef    ANSI
  41. #endif
  42.  
  43. /* Define these according to your local setup.  It doesn't hurt anything
  44.    to have `.' in all the paths, but since most users do not have their
  45.    own fonts, formats, or string pools, it only slows things down.
  46.    Do not put a leading or trailing colon in these paths, or double a
  47.    colon in the middle.  That might lead to infinite recursion.
  48.    Also see TEXFONTS_SUBDIR et al., below.  */
  49. #define    TEXFONTS   ""
  50. #define    TEXFORMATS "/usr/local/lib/tex/formats"
  51. #define    TEXINPUTS  "."
  52. #define    TEXPOOL    "/usr/local/lib/tex"
  53. #define    MFBASES    "/usr/local/lib/mf/bases"
  54. #define    MFINPUTS   ".:/usr/local/lib/mf/macros"
  55. #define    MFPOOL     "/usr/local/lib/mf"
  56. /* #define VFFONTS "somepath" */
  57.  
  58. /* Define this if you want subdirectories of directories in the search
  59.    paths to be searched.  (See discussion in ./README.WEB2C of directory
  60.    hierarchies.)  */
  61. #ifndef SEARCH_SUBDIRECTORIES
  62. #define SEARCH_SUBDIRECTORIES
  63. #endif
  64.  
  65. /* If SEARCH_SUBDIRECTORIES is defined, these symbols define paths in
  66.    which to look for subdirectories.  The directories in TEXFONTS and
  67.    the like, above, are not searched for subdirectories.  The
  68.    directories named here are not themselves searched for files.  Not
  69.    all of the symbols here need be defined.  If you don't want to define
  70.    a default directory, but want users to be able to define the
  71.    environment variables, define the symbol to be the empty string.  */
  72. #ifdef SEARCH_SUBDIRECTORIES
  73. #define TEXFONTS_SUBDIR "/usr/local/lib/tex/fonts"
  74. #define TEXINPUTS_SUBDIR "/usr/local/lib/tex/macros"
  75. #define MFINPUTS_SUBDIR "/src/TeX+MF/typefaces"
  76. #endif
  77.  
  78. /* BibTeX search path for .bib files.  BibTeX uses TEXINPUTS to search
  79.    for .bst files.  */ 
  80. #define    BIBINPUTS    ".:/usr/local/lib/tex/bib"
  81.  
  82. /* Metafont window support: More than one may be defined, as long as you
  83.    don't try to have both X10 and X11 support (because there are
  84.    conflicting routine names in the libraries).  After you've defined
  85.    these, make sure to update the top-level Makefile accordingly.  Also,
  86.    if you want X11 support, see the `Online output from Metafont'
  87.    section in ./README before compiling.  */
  88. #undef    HP2627WIN        /* HP 2627. */
  89. #undef    SUNWIN            /* SunWindows. */
  90. #undef    TEKTRONIXWIN        /* Tektronix 4014. */
  91. #undef    UNITERMWIN        /* Uniterm Tektronix.  */
  92. #undef    X10WIN            /* X Version 10. */
  93. #undef    X11WIN            /* X Version 11. */
  94.  
  95. #if defined(X10WIN) && defined(X11WIN)
  96. sorry
  97. #endif
  98.  
  99. /* Default editor command string: `%d' expands to the line number where
  100.    TeX or Metafont found an error and `%s' expands to the name of the
  101.    file.  The environment variables TEXEDIT and MFEDIT override this.  */
  102. #define    EDITOR    "/usr/bin/vi +%d %s"
  103.  
  104. /* Define this if you have getwd in your C library.  If you have getcwd,
  105.    but not getwd, don't define it.  This symbol is only relevant if
  106.    SEARCH_SUBDIRECTORIES is defined.  */
  107. #ifndef HAVE_GETWD
  108. #undef HAVE_GETWD
  109. #endif
  110.  
  111. /* Define this to be the return type of your signal handlers.  POSIX
  112.    says it should be `void', but some older systems want `int'.  Check
  113.    your <signal.h> include file if you're not sure.  */
  114. #ifndef SIGNAL_HANDLER_RETURN_TYPE
  115. #define SIGNAL_HANDLER_RETURN_TYPE void
  116. #endif
  117.  
  118. /* Define this to be what your sprintf(3) routine returns---most likely
  119.    `int' or `char *'.  Since the calls to sprintf are always cast to
  120.    void, anyway, this is only necessary to avoid conflicts between
  121.    declarations.  If you have ANSI or _POSIX_SOURCE defined, this symbol
  122.    is irrelevant.  */
  123. #ifndef SPRINTF_RETURN_TYPE
  124. #define SPRINTF_RETURN_TYPE int
  125. #endif
  126.  
  127. /* The type `glueratio' should be a floating point type which won't
  128.    unnecessarily increase the size of the memoryword structure.  This is
  129.    the basic requirement.  On most machines, if you're building a
  130.    normal-sized TeX, then glueratio must probably meet the following
  131.    restriction: sizeof(glueratio) <= sizeof(integer).  Usually, then,
  132.    glueratio must be `float'.  But if you build a big TeX, you can (on
  133.    most machines) and should make it `double' to avoid loss of precision
  134.    and conversions to and from double during calculations.  (All this
  135.    also goes for Metafont.)  Furthermore, if you have enough memory, it
  136.    won't hurt to have this defined to be `double' for running the
  137.    trip/trap tests.  */
  138. typedef float glueratio;
  139.  
  140. /* Define this if you want TeX to be compiled with local variables
  141.    declared as `register'.  On SunOS 3.2 and 3.4 (at least), compiling
  142.    with cc, this will cause problems.  If you're using gcc or the SunOS
  143.    4.x compiler, and compiling with -O, register declarations are
  144.    ignored, so there is no point in defining this.  */
  145. #ifndef REGFIX
  146. #undef    REGFIX
  147. #endif
  148.  
  149. /* If the type `int' is at least 32 bits (including a sign bit), this
  150.    symbol should be #undef'd; otherwise, it should be #define'd.  If
  151.    your compiler uses 16-bit int's, arrays larger than 32K may give you
  152.    problems, especially if indices are automatically cast to int's.  */
  153. #ifndef SIXTEENBIT
  154. #undef    SIXTEENBIT
  155. #endif
  156.  
  157. /* Our character set is 8-bit ASCII unless NONASCII is defined.  For
  158.    other character sets, make sure that first_text_char and
  159.    last_text_char are defined correctly (they're 0 and 255,
  160.    respectively, by default).  In the *.defines files, change the
  161.    indicated range of type `char' to be the same as
  162.    first_text_char..last_text_char, `#define NONASCII', and retangle and
  163.    recompile everything.  */
  164. #ifndef NONASCII
  165. #undef    NONASCII
  166. #endif
  167.  
  168. /* The type `schar' should be defined here to be the smallest signed
  169.    type available.  ANSI C compilers may need to use `signed char'.  If
  170.    your char type is unsigned, then define schar to be the type
  171.    `short'.  */
  172. #ifdef AIX
  173. typedef int schar;
  174. #else
  175. typedef    char schar;
  176. #endif
  177.  
  178. /* The type `integer' must be a signed integer capable of holding at
  179.    least the range of numbers (-2^31)..(2^32-1).  The ANSI C standard
  180.    says that `long' meets this requirement, but if you don't have an
  181.    ANSI C compiler, you might have to change this definition.  */
  182. typedef long integer;
  183.  
  184. /* You need not worry about the definitions in `defaults.h' unless
  185.    something goes wrong.  */
  186. #include "defaults.h"
  187.  
  188. #endif /* not __WEB2C_SITE_H */
  189.